package com.njtoyo.taxi.admin.rest.presenter.local_service.merchant;

import com.njtoyo.taxi.admin.library.common.GeoPoint;
import com.njtoyo.taxi.admin.mapper.master.enums.local_service.LifeMerchantState;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class LifeMerchantPagePresenter {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "商家logo")
    private String logo;

    @ApiModelProperty(value = "商户名称")
    private String name;

    @ApiModelProperty(value = "运营区")
    private Long merchantRegionId;

    @ApiModelProperty(value = "运营区名称")
    private String merchantRegionName;

    @ApiModelProperty(value = "法人")
    private String legalPerson;

    @ApiModelProperty(value = "地址Id")
    private Long addressId;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "联系人")
    private String contactPerson;

    @ApiModelProperty(value = "联系人电话")
    private String contactPhone;

    @ApiModelProperty(value = "分润比例")
    private BigDecimal proportion;

    @ApiModelProperty(value = "状态 0:waiting_for_review[待审核],1:review_failed[审核未通过],2:review_approved[审核已通过(未营业)],3:operating[营业中]")
    private LifeMerchantState state;

    @ApiModelProperty(value = "商品是否自动审核")
    private Boolean commodityAutoReview;

    @ApiModelProperty(value = "地址经纬度")
    private GeoPoint addressPoint;

    @ApiModelProperty(value = "商家简介文字描述")
    private String detail;

    @ApiModelProperty(value = "营业开始时间")
    private String openingTimestamp;

    @ApiModelProperty(value = "营业结束时间")
    private String closeTimestamp;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    private Date updatedAt;

    @Data
    public static class MerchantCategoryArea {

        @ApiModelProperty(value = "运营区")
        private Long merchantRegionId;

        @ApiModelProperty(value = "地区表id")
        private Long areaIds;

        @ApiModelProperty(value = "运营区名称")
        private String merchantRegionName;
    }

}